<ul>
	<? foreach ($data as $k=>$row): ?>
	<li>
        <a 
            tabindex="<?= $k ?>" 
            href="javascript:void(0)" 
            onclick="<?= $func?>(this)" 
            value="<?= $row['id'] ?>"
            object="<?= $object ?>"
            data="<?= isset($row['data']) ? $row['data'] : '' ?>"><?= $row['name'] ?></a>
    </li>
	<? endforeach; ?>
</ul>